package ma.cdm.compteRenduVO;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import java.util.List;

public class SuiviPointVO implements Externalizable, Serializable {

	
	private PersonneVO presentePar;
	private PointVO point;
	private List<DetailPointVO> detailsPoint ;
	public SuiviPointVO() {
			
	}
	
	
	public SuiviPointVO(PersonneVO presentePar) {
		super();
		this.presentePar = presentePar;
	}
	
	
	public SuiviPointVO( PointVO point,PersonneVO presentePar) {
		super();
		this.presentePar = presentePar;
		this.point = point;
	}


	public List<DetailPointVO> getDetailsPoint() {
		return detailsPoint;
	}


	public void setDetailsPoint(List<DetailPointVO> detailsPoint) {
		this.detailsPoint = detailsPoint;
	}


	public PointVO getPoint() {
		return point;
	}


	public void setPoint(PointVO point) {
		this.point = point;
	}


	public PersonneVO getPresentePar() {
		return presentePar;
	}

	public void setPresentePar(PersonneVO presentePar) {
		this.presentePar = presentePar;
	}

	public void readExternal(ObjectInput input) throws IOException,
			ClassNotFoundException {
		  detailsPoint = (List<DetailPointVO>)input.readObject();
          point = (PointVO)input.readObject() ;
          presentePar = (PersonneVO)input.readObject();
	}

	public void writeExternal(ObjectOutput output) throws IOException {
		output.writeObject(detailsPoint);
        output.writeObject(point);
        output.writeObject(presentePar);

	}

}
